package com.mode.adapter.iterator;

/**
 * @Description:
 * @Author: zyf
 * @Time: 2020/9/29 10:51
 */
public class IteratorTest {
    public static void main(String[] args) {
        List list=new ConcreteAggregate();
        list.add("a");
        list.add("b");
        list.add("c");
        list.add("d");
        Iterator it=list.iterator();
        while(it.hasNext()){
            System.out.println(it.next());
        }
    }
}
